import Layout from '@/layout';

export default {
    path: '/',
    component: Layout,
    redirect: '/business',
    meta: {
        title: '用户管理', icon: 'dashboard'
    },
    children: [
        {
            path: '/business',
            component: () => import( '@/views/business/index' ),
            name: 'business',
            meta: {
                title: '管理', icon: 'dashboard'
            }
        },
        {
            path: '/business/buyer',
            component: () => import( '@/views/business/buyer' ),
            name: 'business_buyer',
            meta: {
                title: '管理', icon: 'dashboard'
            }
        },
        {
            path: '/business/order',
            component: () => import( '@/views/business/buyer' ),
            name: 'business_cashier',
            meta: {
                title: '管理', icon: 'dashboard'
            }
        },
        {
            path: '/business/test',
            component:  () => import( '@/views/business/test/index' ),
            redirect: '/business/test/a',
            meta: {
                title: '测试', icon: 'dashboard'
            },
            children : [
                {
                    path: '/business/test/a',
                    component: () => import( '@/views/business/test/a' ),
                    name: 'business_test_a',
                    meta: {
                        title: 'A', icon: 'dashboard'
                    }
                },
                {
                    path: '/business/test/b',
                    component: () => import( '@/views/business/test/b' ),
                    name: 'business_test_b',
                    meta: {
                        title: 'B', icon: 'dashboard'
                    }
                },
            ]
        },
    ]
}